package com.magpiebridge.controller;

import com.magpiebridge.util.UploadUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

@RestController
public class UploadController {
    @PostMapping("/uploadImages")
    public String uploadImages(MultipartFile file) throws IOException {
        return UploadUtil.uploadImages(file);
    }
}
